package com.zy.ems.common.javacommon.checkparam;

import java.util.Date;

import org.apache.log4j.Logger;

import com.zy.ems.common.util.ICheckProcess;

public class CheckParamIsDate implements ICheckProcess {

	private static Logger logger = Logger.getLogger(CheckParamIsDate.class);

	public boolean proCheck(String value) {
		try {
			new Date(Long.valueOf(value) * 1000);
		} catch (Exception e) {
			logger.error(e.getMessage(), e);
			return false;
		}
		return true;
	}

}
